// Package entity
// @Author: zhangdi
// @File: chat_dialog
// @Version: 1.0.0
// @Date: 2023/7/3 14:48
package entity

import (
	"time"
)

// ChatDialog 跟 chatDetails 属于一对多的关系
type ChatDialog struct {
	ID        uint      `gorm:"primary_key;auto_increment" json:"id"`
	ToolId    uint      `gorm:"size:50;not null" json:"tool_id" `            //关联的ToolId
	Clips     string    `gorm:"size:50;not null;default:''" json:"content" ` //所使用剪贴板
	CreatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"-"`
	UpdatedAt time.Time ` gorm:"default:CURRENT_TIMESTAMP" json:"-"`
}

func (e *ChatDialog) TableName() string {
	return TableNameChatDialog
}
